//
//  FCSDKViewController.h
//  FCSDK
//
//  Created by ZhouYou on 2022/3/28.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface FCSDKViewController : UIViewController

/**
 * 是否原生页面，默认为yes
 * 框架暂未做非原生功能扩展，即非原生页面webveiw需自行扩展开发
 */
@property (nonatomic, assign) BOOL isNative;

/**
 是否允许横屏，默认为不允许横屏
 */
@property (nonatomic, assign) BOOL allowLandscape;
@property (nonatomic, strong) NSArray *supportedOrientations;
- (BOOL)supportsOrientation:(UIInterfaceOrientation)orientation;

/**
 * 用于UIController的参数传递，建议采用标准json格式等字符串
 */
@property (nonatomic, copy) NSString *paramStr;

/**
 * 与paramStr关联，若paramStr为字典类型标准json格式，可通过paramDictionary设定和获取
 */
@property (nonatomic, strong) NSDictionary *paramDictionary;

/**
 默认返回键
 */
- (UIButton *)fc_getlLeftBackBtn;
/**
 添加默认返回键
 */
- (void)fc_addLeftBackBtn;

/*
 返回键的action,可重写
 */
- (void)fc_backAction;

@end

NS_ASSUME_NONNULL_END
